<template>
  <Row>
    <Col span="8" offset="8">
      <Card style="width:320px">
        <div style="text-align:center">
          <h3>Hi,{{user.username}},{{time}}好。</h3>
        </div>
      </Card>
    </Col>
  </Row>
</template>

<script>
/* eslint-disable */
import userService from "@/service/userService";
import deptService from "@/service/deptService";
export default {
  data() {
    return {
      user: {
          username:"员工"
      },
      time: "你"
    };
  },
  mounted() {
    this.user = this.$route.params;
    const hour = new Date().getHours();
    if (hour > 12) {
      this.time = "下午";
    } else {
      this.time = "上午";
    }
  }
};
</script>
